import Layout from '@/layout'
const sysTemRouter =
{
  path: '/system',
  component: Layout,
  redirect: '/system/dept',
  children: [
    {
      path: 'enterpriseInfo',
      component: () => import('@/views/system/enterpriseInfo/index'),
      name: '企业信息',
      meta: { title: '企业信息', icon: 'el-icon-warning', noCache: true }
    },
    {
      path: 'enterpriseMaterial',
      component: () => import('@/views/system/enterpriseData/index'),
      name: '企业资料',
      meta: { title: '企业资料', icon: 'el-icon-warning', noCache: true }
    },
    {
      path: 'enterprise-filing',
      component: () => import('@/views/system/EnterpriseFiling/index'),
      name: '企业备案',
      meta: { title: '企业备案', icon: 'el-icon-warning', noCache: true }
    },
    {
      path: 'subCompanyType',
      component: () => import('@/views/system/sub-company-temp/index'),
      name: '分公司套餐',
      meta: { title: '分公司套餐', icon: 'el-icon-warning', noCache: true }
    },
    {
      path: 'dept',
      component: () => import('@/views/system/dept/index'),
      name: '部门管理',
      meta: { title: '部门管理', icon: 'el-icon-warning', noCache: true }
    },
    {
      path: 'role',
      component: () => import('@/views/system/role/index'),
      name: '角色管理',
      meta: { title: '角色管理', icon: 'el-icon-warning', noCache: true }
    },
    {
      path: 'roleUser',
      component: () => import('@/views/system/role/components/index'),
      name: '角色用户',
      meta: { title: '角色分配用户', leftActiveMenu: '/system/role', icon: '' }
    },
    {
      path: 'user',
      component: () => import('@/views/system/user/index'),
      name: '人员管理',
      meta: { title: '人员管理', leftActiveMenu: '/system/role', icon: '' }
    },
    {
      path: 'post',
      component: () => import('@/views/system/post/index'),
      name: '岗位管理',
      meta: { title: '岗位管理', icon: 'el-icon-user-solid', noCache: true }
    },
    {
      path: 'rocksoil',
      name: '岩土描述',
      meta: { title: '岩土描述', icon: 'el-icon-user-solid', noCache: true },
      component: () => import('@/views/superviseBaseInfo/mobileApp/rocksoil/index')
    },
    {
      path: 'personal-dict',
      component: () => import('@/views/system/personal-dict/index'),
      name: '个人字典',
      meta: { title: '个人字典', icon: 'el-icon-warning', noCache: true }
    },
    {
      path: 'personal-data',
      component: () =>
        import('@/views/system/personal-dict/components/index'),
      name: '字典数据',
      meta: { title: '字典数据', leftActiveMenu: '/system/personal-dict', icon: '' }
    },
    {
      path: 'systemDict',
      component: () => import('@/views/system/system-dict/type'),
      name: '系统字典',
      meta: { title: '系统字典', icon: 'el-icon-warning', noCache: true }
    },
    {
      path: 'systemDict/:dictId(\\d+)',
      component: () => import('@/views/system/system-dict/data'),
      name: 'Data',
      meta: { title: '字典数据', leftActiveMenu: '/system-tool/dict', icon: '' }
    },
    {
      path: 'menu',
      component: () => import('@/views/system/menu/index'),
      name: '菜单管理',
      meta: { title: '菜单管理', icon: 'el-icon-warning', noCache: true }
    },
    {
      path: 'AppEdition',
      component: () => import('@/views/system/AppEdition/index'),
      name: '版本更新',
      meta: { title: '版本更新', icon: 'el-icon-warning', noCache: true }
    },
    {
      path: 'function-config',
      component: () => import('@/views/system/FunctionConfig'),
      name: 'FunctionConfig',
      meta: { title: '功能配置', icon: 'el-icon-warning', noCache: true }
    }
  ]
}

export default sysTemRouter

